package today.rocky.memory.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * @author Rocky
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MemoryRecordDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long userId;

    @ApiModelProperty(value = "账号")
    private String email;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "背景")
    private String bgImg;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;

    private String nickname;

    private String dt;



}